@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
  overflow-y: auto;
  @include scrollBar;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 15px 15px 33px 15px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: center;
  padding-left: 15px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  .el-button{
    width: 180px;
    height: 40px;
    margin-right: 20px;
  }

  background: #d0d0d0;
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  @include common-border;
  padding-bottom: 8px;
  .el-form--inline{
    padding-top: 18px !important;
  }
  .el-form-item{
    width: 480px;
    .el-form-item__label { width: 120px; }
    .el-form-item__content{ width: 360px; }
  }
  .el-select{
    width: 100%;
  }
}

.filter-button-container{
  text-align: center;
  .el-button{
    margin-right: 20px;
  }
}

.card-filter-container{
  @include common-border;
  padding-bottom: 8px;
  .el-form--inline{
    padding-top: 18px !important;
  }
}

.pudge-hidden{
  display: none;
}

.theme-color{
  color: $theme;
}

// dialog 弹窗大小 单行2个form-item 460 * 2 + 15 *2 + 10 * 2 = 970
.form-dialog{
  .el-dialog__body{
    padding: 30px 15px 15px 15px ;
  }
  .el-dialog__footer{
    padding: 10px 25px 20px 15px;
    .el-button{
      margin-left: 20px;
      font-size: 14px;
      width: 100px;
      height: 40px;
    }
  }
  .form-container{
    .el-form-item{
      width: 460px;
      .el-form-item__label { width: 100px; }
      .el-form-item__content{ width: 360px; }
    }
    .el-form-item100{
      width: 940px;
      .el-form-item__label { width: 100px; }
      .el-form-item__content{ width: calc(100% - 110px); }
    }
    .el-select{
      width: 100%;
    }
    .el-date-editor{
      width: 100% !important;
    }
    .el-input-number{
      width: 100%;
      .el-input__inner{
        text-align: left;
      }
    }
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.table-container{
  @include common-border;
  .el-table__header{
    font-weight: 600;
  }
}

#pudge-login-footer {
  height: 40px;
  line-height: 40px;
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
}

#pudge-footer {
  background: none repeat scroll 0 0 white;
  border-top: 1px solid #e7eaec;
  overflow: hidden;
  padding: 10px 6px 0 6px;
  height: 33px;
  font-size: 12px;
  color: #7a8b9a;
  letter-spacing: 0.8px;
  position: fixed;
  bottom: 0;
  z-index: 99;
  width: 100%;
}

// 通用全局表单wrapper
.common-form-wrapper{
  padding: 0 0 33px 0;
  .common-form-container{
    // 若存在 BottomFixedButtonContainer 则需margin-bottom 50px
    margin: 15px 15px 15px 15px;
    // form item固定长度
    .el-form-item{
      width: 520px;
      .el-form-item__content{
        width: 400px;
        .el-select { width: 100%; }
        .el-input-number{ width: 100%; }
        .ml12{ margin-left: 12px;}
      }
    }
    .longer-form-item{
      // 兼容1024*768, 按钮radio则使用700
      width: 740px;
      // width: 700px;
      .el-form-item__content{
        width: 620px;
        // width: 580px;
      }
    }
    // 列表表单
    .common-form-table-wrapper{
      .common-form-table-button-container{
        margin-bottom: 8px;
      }
      .common-form-table{
        @include common-box;
        .required-header::before{
          content: "*";
          color: #ff4949;
          margin-right: 2px;
        }
        .el-table__body-wrapper{
          @include scrollBar;
        }
        .el-form-item {
          margin-bottom: 0;
          width: 100%;
          .el-form-item__content{
            width: 100%;
            .el-autocomplete{ width: 100%; }
            .el-input-number{ width: 100%; }
          }
        }
        .el-table__footer{
          .cell { padding-left: 5px; padding-right: 2px; }
        }
        .el-icon-delete{ font-size: 20px; }
        .cell{ padding-left: 2px; padding-right: 2px; }
        .el-input__inner{ padding: 0 5px;}
      }
    }
    .input-with-select .el-input-group__prepend {
      background-color: #fff;
      .el-select{width: 145px;}
    }
    .el-divider__text {
      position: absolute;
      padding: 0 20px;
      font-weight: 600;
      color: $theme;
      font-size: 16px;
    }
    .tip-message{
      color: $theme;
      font-size: 12px;
      line-height: 1;
      padding-top: 4px;
      position: absolute;
      top: 100%;
      left: 0;
    }
    .pick-numbers-form-item{ .el-input-group{ width: 50%; } }
  }
  .with-bottom-sticky-button{
    margin-bottom: 50px;
  }
  // 数字输入文件靠左
  .el-input-number .el-input__inner{
    text-align: left;
  }
}
.common-autocomplete {
  width: 700px !important;
  li {
    line-height: normal;
    padding: 8px 8px 8px 20px;
    .select-title { overflow: hidden; }
    .select-other { font-size: 12px; color: #b4b4b4; }
  }
}
// select 下拉框元素
.common-select-popper{
  max-width: 100%;
  .common-select-option{
    line-height: normal;
    padding: 8px 8px 8px 20px;
    height: auto;
    .left-select-option{ float: left; }
    .right-select-option{ float: right; color: #8492a6; }
    .select-title { display: block; }
    .select-other {
      display:inline-block;
      font-size: 12px;
      color: #b4b4b4;
      margin-top: 5px;
    }
  }
}